# ; -*- mode: python; tab-width: 4; -*-

#source = Glob("./src/*.cpp")
#source.append("./src/fixmessagecounter.l")

debug = int(ARGUMENTS.get("debug", 1))

if debug > 0:
    CCFLAGS="-Wall -g"
    print "Building WITH debug info."
else:
    CCFLAGS="-Wall"
    print "Building WITHOUT debug info."

VariantDir("./build", "./src", duplicate=0)
env = Environment()
env.Program(target="./build/focx",
            LIBS=["fl"],
#            LIBPATH=["/usr/lib", "/usr/local/lib", "/opt/lib"],
            source=["./build/fixmessagecounter.l"])
